package exercise.day8;

import java.util.Scanner;

/**
 * @author Dianzhi Han
 * @version 1.0
 * @description: TODO
 * @date 2022/11/5 0:15
 */
public class HJ108_MinGongBeiShu {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int n = sc.nextInt();
        int mn = gdc(m, n);
        System.out.println(m * n / mn);
    }
    public static int gdc(int m, int n) {
        int r;
        if (m == n) {
            return m;
        }
        if (m < n) {
            int temp = m;
            m = n;
            n = temp;
        }
        while ((r = m % n) > 0) {
            m = n;
            n = r;
        }
        return n;
    }
}
